<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="parentid" class="control-label col-xs-12 col-sm-3">{:__('Parent')}:</label>
        <div class="col-xs-12 col-sm-6">
            <select id="groupId" data-rule="required" class="form-control selectpicker show-tick" name="row[groupId]" data-live-search="true">
                <option value="1">根角色组</option>
                <!--{foreach name="roles" item="vo"}-->
                <!--<option value="{$vo->groupId}">&nbsp;&nbsp;{$vo->name}</option>-->
                <!--{/foreach}-->
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-3">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-6">
            <input type="text" class="form-control" id="groupName" name="row[roleName]" value="{$row.name}" data-rule="required" />
        </div>
    </div>
    <div class="form-group hide layer-footer">
        <label class="control-label col-xs-12 col-sm-3"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="button" class="btn btn-default btn-embossed" onClick="closeLayerWin(this)">{:__('Close')}</button>
        </div>
    </div>

</form>